package indi.zhifa.core.redis.config;

import indi.zhifa.core.redis.entity.ScriptFileConfigData;
import lombok.Data;
import org.springframework.boot.autoconfigure.data.redis.RedisProperties;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.context.annotation.Configuration;
import org.springframework.context.annotation.Primary;

import java.time.Duration;
import java.util.List;

@Data
@Configuration
@ConfigurationProperties(prefix = "zhifa-engine.redis")
public class RedisProperty{
    Duration cacheExpire;
    List<ScriptFileConfigData> scripts;
    public RedisProperty(){
        cacheExpire = Duration.ofMinutes(5);
    }
}
